class Guest < ActiveRecord::Base
  
  validates_presence_of(:name, :cpf, :phone)
  validates_numericality_of(:phone, :cellphone)
  validates_uniqueness_of(:cpf)
  
  def guest_check(cpf)
    guest = self.find_by_cpf(cpf)
    guest    
  end
  
end
